package com.fqgj.xjd.user.dao.impl;
import com.fqgj.common.base.AbstractBaseMapper;
import com.fqgj.xjd.user.dao.UserQuotaHistoryDao;
import com.fqgj.xjd.user.entity.UserQuotaHistoryEntity;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.Map;

/**
* User: zhangxingyun
* Date: 2017-07-20
* Time: 18:38:53.187
*/

@Repository
public class UserQuotaHistoryDaoImpl extends AbstractBaseMapper<UserQuotaHistoryEntity> implements UserQuotaHistoryDao {

    @Override
    public UserQuotaHistoryEntity getAllQutoaTypeByuserCode(String userCode, String productCategory ,String gmtCreate) {
        Map<String, String> map = new HashMap<>();
        map.put("userCode", userCode);
        map.put("categoryCode",productCategory);
        map.put("gmtCreate", gmtCreate);
        return getSqlSession().selectOne(getStatement("getAllQutoaTypeByuserCode"), map);
    }

}